package day08;

class Father {
    public int age = 20;
}

class Son extends Father {
    public int num = 30;
    public int age = 40;

    public void show(){
        int age = 60;
        System.out.println(age); // 局部范围
        System.out.println(this.age); // 本类成员范围
        System.out.println(super.age); // 父类成员范围
        System.out.println(num);
    }
}
public class ExtendDemo3 {
    public static void main(String[] args) {
        Son s = new Son();
        s.show();
    }
}
